!!! 5
html
  head
    title= title
    link(rel='stylesheet', href='/stylesheets/style.css')
  body
    header
      a.home(href="/")
        h1 BaBaTag
        | Open Source CMS in node.js
      div.login
        div.nav
          - if (user !== undefined)
            span logged as 
              =user
            span
              a(href="/logout") logout
          - else
            span
              a(href="/newuser") register
            span
              a(href="/login") login
    div.menu
      div.nav
        span
          a(href="/posts") recent posts
        span  
          a(href="/tags") top tags
        - if (user)
          span
            a(href="/newpost") write new
    != body
